#include <stdio.h>
#include <netdb.h>

int main() {
	struct hostent * h = gethostent();

	char buffer[512] = {0};
	inet_ntop(h->h_addrtype, h->h_addr_list[0],
			(char *) buffer, sizeof(buffer));

	printf(" %s\n", buffer);

	h = gethostent();

	inet_ntop(h->h_addrtype, h->h_addr_list[0],
			(char *) buffer, sizeof(buffer));

	printf(" %s\n", buffer);

	return 0;
}
